var reqTimeout = 30000;// 请求超时时间，单位毫秒
var serverPath = "http://127.0.0.1:9001/";
var serverOssPath = "http://127.0.0.1:9002/";

//图片服务器配置
var imgProjectName = "oss/";
// var serverImgPath =  "https://yunqz.oss-cn-zhangjiakou.aliyuncs.com/";
var serverImgPath = serverOssPath+imgProjectName;
var shopxPublicRSAKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbPTlB63OSW-2N9tIArI3sJ1eVwwin7JPH4RaWdMqEa1FjKyuPB-0njv6Ldk64kqEqfihRh6ryH9GF1uqQZZdya7krxPoO6SoXKaBDZAo63Bz-iz-1LQqJDll3H0TtuJuxB-GJDnFGM8KBh51P4Cpd6vPhYC4GPqg7aaraON8hqQIDAQAB";
var ossKey = "MemNocrBLk3sv4Xl5zrjmb4Fv81j6GT5";
//本地页面环境配置
var localIp= "http://127.0.0.1:8080/";
// var localIp= "http://120.25.106.127:8080/";
var localProjectName = "/";
var localPath = localIp+localProjectName;0

//图片上传后缀
var imgSuffix = "jpg|jpeg|bmp|png";
//文件上传后缀
var fileSuffix = "jpg|jpeg|bmp|doc|docx|pdf|xls|xlsx|dwg|txt";

/**
 * 错误码
 */
var ERROR_CODE = {
    /** 成功码 */
    'SUCCESS': "00000",
    /** 令牌错误 */
    'TOKEN_ERROR': "30001",
    /** 令牌过期 */
    'TOKEN_INVALIDATE': "30002"
};

/**
 * 缓存
 */
var SYS_SESSION = {
    /** 登录用户令牌 */
    'TOKENID_SESSION': "TOKENID_SESSION",
    /** 登录用户对象 */
    'USER_SESSION': "USER_SESSION",
    /** 登录用户功能权限 */
    'USER_FUNC': "USER_FUNC",
    /** 字典项 */
    'SYS_DICT': "SYS_DICT",
}

/**
 * 上传文件类型
 */
var FILE_TYPE ={
    /**
     * 图片
     */
    'IMG':'1',
    /**
     * 文件
     */
    'FILE':'2',
    /**
     * CAD
     */
    'CAD':'3',
    /**
     * 核心图片
     */
    'COREIMG':'4',
}